<?php include(APPPATH.'views/header.php'); ?>
<div class="success_box">

 <div class="success">
 <h1><?php echo ($response['error']=='0') ? '恭喜您' : '充值失败';?>！<span>
     <?php $v = '系统繁忙，请稍后再试!';
          switch ($response['error']){
             case '0':$v = '充值成功！'; break;
          case '30019':$v = '未知的支付渠道'; break;
          case '30020':$v = '签名错误'; break;
          case '30021':$v = '支付失败了'; break;
          case '30022':$v = '订单不存在'; break;
          case '30023':$v = '充值金额错误'; break;
          case '30024':$v = '更新订单失败'; break;
          case '30025':$v = '充值兑换失败'; break;
          case '30026':$v = '调用充值接口失败'; break;
         }
          echo $v.'!';
          ?>
     </span></h1>
 <p>由于系统环境的差异，游戏币可能延迟5-10分钟到账。如果30分钟后仍未到账，请联系客服。</P>
 </div>

<table class="table3"  border="0" cellspacing="0" cellpadding="0" >
  <tr>
    <td class="ltd">充值金额：</td>
    <td><span class="color"><?php echo $order['price'];?></span>元</td>
    <td class="ltd">兑换元宝：</td>
    <td><?php echo $order['price'] * 100;?></td>
  </tr>
  <tr>
    <td class="ltd">订单号：</td>
    <td colspan="3"><?php echo $order['order_sn'];?></td>
  </tr>
    <tr>
    <td class="ltd">充值账号：</td>
    <td colspan="3"><?php echo $order['passport'];?></td>
  </tr>
</table>

<div class="box1"><a href="/" class="button3">进入官网</a><a href="/pay/index?pay_type=wsyh" class="button6">再次充值</a></div>
<div class="clear"></div>
</div>
<!--主体部分结束-->
<?=include(APPPATH.'views/footer.php');?>